package com.netease.f;

import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;

public class h
  implements i
{
  private OutputStream a;
  private b b = null;
  private List c = new ArrayList();

  public h(OutputStream paramOutputStream)
  {
    this.a = paramOutputStream;
    g.a(paramOutputStream, "<?xml version=\"1.0\" encoding=\"utf-8\"?>");
  }

  public void a()
  {
    int i = this.c.size();
    for (int j = 0; j < i; j++)
      ((b)this.c.get(j)).a(this.a);
  }

  public boolean a(b paramb)
  {
    int i = 0;
    if (this.b != null)
    {
      this.b.d(paramb);
      i = 1;
    }
    return i;
  }

  public boolean a(String paramString)
  {
    int i = 0;
    if (this.b != null)
    {
      b localb = new b(null, paramString);
      this.b.d(localb);
      i = 1;
    }
    return i;
  }

  public boolean a(String paramString1, String paramString2)
  {
    int i = 0;
    if (this.b != null)
    {
      this.b.b(paramString1, paramString2);
      i = 1;
    }
    return i;
  }

  public b b(String paramString1, String paramString2)
  {
    if (this.b != null);
    for (b localb = this.b.a(paramString1, paramString2); ; localb = null)
      return localb;
  }

  public boolean b(b paramb)
  {
    this.b = paramb;
    this.c.add(this.b);
    return true;
  }

  public b c(String paramString1, String paramString2)
  {
    this.b = new b(paramString1, paramString2);
    this.c.add(this.b);
    return this.b;
  }

  public boolean d(String paramString1, String paramString2)
  {
    this.b = null;
    this.c.add(new b(paramString1, paramString2));
    return true;
  }

  public String toString()
  {
    StringBuilder localStringBuilder = new StringBuilder();
    localStringBuilder.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    int i = this.c.size();
    for (int j = 0; j < i; j++)
      localStringBuilder.append(((b)this.c.get(j)).toString());
    return localStringBuilder.toString();
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.f.h
 * JD-Core Version:    0.6.0
 */